Week 2 - Blink Using OS
startup.c
Go to the documentation of this file.
1 /**************************************************
2  * Texas A&M University
3  * Electronic Systems Engineering Technology
4  * ENTC-489 Embedded Real Time Software Development
5  * Author: willey
6  * File: startup.c
7  **************************************************/
15 #include <stdint.h>
16 #include <stdbool.h>
17 #include "driverlib/sysctl.h"
18 #include "driverlib/rom.h"
19 #include "os.h"
20 #include "bsp.h"
21 #include "blink.h"
22 
23 /**************************************************/
26 /**************************************************/
27 
28 /**************************************************/
35 int main ( void )
36 {
37  /* start the system clock */
38  ROM_SysCtlClockSet(CPU_80MHZ_CLOCK);
39 
40  /* disable interrupts until we get everything started */
41  CPU_IntDis();
42 
43  /* Initialize "uC/OS-II, The Real-Time Kernel" */
44  OSInit();
45 
46  /* initialize the I/O ports */
47  init_gpio();
48 
49  /* create the tasks here */
51 
52  /* Start multitasking (i.e. give control to uC/OS-II) */
53  OSStart();
54 
55  while (1)
56  {
57  /* we never get here, OSStart() above gets the ball rolling */
58  }
59 } /* main() */
60 
61 
62 /**************************************************/
64 /* Close of Doxygen group Application
65  **************************************************/
66 
void init_gpio(void)
Definition: bsp.c:26
#define CPU_80MHZ_CLOCK
Definition: bsp.h:73
void start_blinking(void)
Definition: blink_task.c:164
int main(void)
Definition: startup.c:35